package com.hjf.encapsulation;

public class Studentscore {
    private double score;

    public void setScore(double score){
        if(score>=0){
            this.score = score;
        }
        else {
            System.out.println("Wrong Score");
        }
    }

    public double getScore(){
        return this.score;
    }
}
